import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const INDEX = () => import('@/components/index');/*首页*/
const ACCESSHISTORY = () => import('@/components/accessHistory');/*出入历史*/
const OWNER = () => import('@/components/owner');/*出入历史*/
const VILLAGE = () => import('@/components/village');/*出入历史*/

const router = new Router({
    routes: [
        {/*首页*/
            path: '/',
            name: 'INDEX',
            component: INDEX
        },
        {/*出入历史*/
            path: '/',
            name: 'ACCESSHISTORY',
            component: ACCESSHISTORY
        },
        {/*业主*/
            path: '/',
            name: 'OWNER',
            component: OWNER
        },
        {/*小区*/
            path: '/',
            name: 'VILLAGE',
            component: VILLAGE
        },
    ]
})

export default router